package com.ruoyi.project.domain.entity;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.base.Field;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 成本更改记录对象 project_sale_log
 *
 * @author zzy
 * @date 2025-10-16
 */
@TableName("project_sale_log")
@Data
public class ProjectSaleLog extends Field
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 货物id */
    @Excel(name = "货物id")
    private String goodsId;

    /** 数量 */
    @Excel(name = "数量")
    private Integer amount;

    /** 管家婆项目id */
    @Excel(name = "管家婆项目id")
    private String housekeeperProject;

    /** 出库日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出库日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date saleDate;

    /** 对应dlyorder编码 */
    @Excel(name = "对应dlyorder编码")
    private String orders;

    /** 原成本 */
    @Excel(name = "原成本")
    private BigDecimal oldCost;

    /** 新成本 */
    @Excel(name = "新成本")
    private BigDecimal newCost;

    /** 修改人 */
    @Excel(name = "修改人")
    private String operator;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 最后登录IP */
    @Excel(name = "最后登录IP")
    private String loginIp;

    /** 最后登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date loginDate;


}